home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20020314-20021006
/
000086_fdc@columbia.edu_Tue May 21 09:04:08 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2002-10-06
|
2KB
|
51 lines
Article: 13380 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Why does my script exit?
Date: 21 May 2002 09:04:04 -0400
Organization: Columbia University
Lines: 34
Message-ID: <acdgk4$dnk$1@watsol.cc.columbia.edu>
References: <b3fkeukbsnm79kdi3f4crjs4ka9vinc6f2@4ax.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1021986246 11947 128.59.39.139 (21 May 2002 13:04:06 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 21 May 2002 13:04:06 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13380
In article <b3fkeukbsnm79kdi3f4crjs4ka9vinc6f2@4ax.com>,
dgk <sonicechoesWithNoSpam@hotmail.com> wrote:
: This loop, from hostmdm.ksc, exits and returns to the command prompt
: after running my MM1 script:
:
: while 1 {
: answer
: if > \v(dialstatus) 0 if < \v(dialstatus) 22 stop 1 Fatal modem error
: if = \v(dialstatus) 0 take MM1.ksc
: echo Type Ctrl-C to exit... ; Give user a chance to cancel
: sleep 2
: }
:
: This is the MM1 script. It isn't complete, but after executing the
: IFAIL code (hangup, exit), the above loop just exits and doesn't stick
: around for another call. Any help appreciated.
:
It exits because it contains an EXIT command:
:IFAIL
HANGUP
EXIT
: Just as an aside, I was going to use the INTEXT macro to read a line
: but that seems designed for terminal emulation and this is just being
: used by another computer with its script so I don't think that I need
: to worry about backspaces and cursor positions.
:
Right, in that case you would not need to handle editing. But if it
works with the editing, you might as well leave it, because then you
can always use or test it manually without having to worry about
perfect typing.
- Frank